import { MenuProps } from "antd";

function useUserDropDown(): [items: MenuProps['items'], onClickItem: (e: React.MouseEvent) => void] {
    const items: MenuProps['items'] = [
        {
            key: '1',
            label: (
                <div className="iconfont-box">
                    <i className="iconfont icon-nickname"></i>
                    <span>个人信息</span>
                </div>
            ),
        },
    ];
    const onClickItem = (e: React.MouseEvent) => {
        e.preventDefault();
        console.log(e); 
    };
    return [ items, onClickItem ];
}
export default useUserDropDown;